﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace EdgarReporte
{
    public partial class FrmMain : Form
    {
        public FrmMain()
        {
            InitializeComponent();
        }

        private void button2_Click(object sender, EventArgs e)
        {
            frmNormal frmNormal = new frmNormal();
            frmNormal.Impresora = cbPrinters.Text; 
            frmNormal.Show();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            frmConDLL frmDLL = new frmConDLL();
            frmDLL.Impresora = cbPrinters.Text;
            frmDLL.Show();
        }

        private void FrmMain_Load(object sender, EventArgs e)
        {
            //cargo la lista de Impresoras instaladas en el sistema
            foreach (var printer in System.Drawing.Printing.PrinterSettings.InstalledPrinters)
            {
                cbPrinters.Items.Add(printer);
            }
        }
    }
}
